package com.gzhryc.weixin.gzh.enums;

public enum ETokenSharedType {

    CREATE(0,"创建不共享"),CREATE_AND_SHARE(1,"创建并共享"),ONLY_GET(2,"只获取");

    private Integer index;
    private String note;

    ETokenSharedType(Integer index,String note){
        this.index = index;
        this.note = note;
    }

    public Integer index(){
        return index;
    }

    public String note() {
        return note;
    }

    public static String note(Integer index) {
        ETokenSharedType[] temp = ETokenSharedType.values();
        for (int i = 0; i < temp.length; i++) {
            ETokenSharedType item = temp[i];
            if (item.index.equals(index)) {
                return item.note;
            }
        }
        return null;
    }
}
